home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9848 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 63 6c | 61 72 6b 2e 6e 65 74 21 |Path: cl|ark.net!|
|00000010| 67 75 73 74 79 0a 46 72 | 6f 6d 3a 20 48 61 72 6c |gusty.Fr|om: Harl|
|00000020| 61 6e 20 4d 65 73 73 69 | 6e 67 65 72 20 3c 67 75 |an Messi|nger <gu|
|00000030| 73 74 79 40 63 6c 61 72 | 6b 2e 6e 65 74 3e 0a 4e |sty@clar|k.net>.N|
|00000040| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000050| 6c 61 6e 67 2e 63 2b 2b | 0a 53 75 62 6a 65 63 74 |lang.c++|.Subject|
|00000060| 3a 20 52 65 3a 20 4c 65 | 61 70 20 79 65 61 72 0a |: Re: Le|ap year.|
|00000070| 44 61 74 65 3a 20 4d 6f | 6e 2c 20 34 20 4d 61 72 |Date: Mo|n, 4 Mar|
|00000080| 20 31 39 39 36 20 31 34 | 3a 32 32 3a 35 34 20 2d | 1996 14|:22:54 -|
|00000090| 30 35 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0500.Org|anizatio|
|000000a0| 6e 3a 20 43 6c 61 72 6b | 20 49 6e 74 65 72 6e 65 |n: Clark| Interne|
|000000b0| 74 20 53 65 72 76 69 63 | 65 73 2c 20 49 6e 63 2e |t Servic|es, Inc.|
|000000c0| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 50 69 |.Message|-ID: <Pi|
|000000d0| 6e 65 2e 53 4f 4c 2e 33 | 2e 39 31 2e 39 36 30 33 |ne.SOL.3|.91.9603|
|000000e0| 30 34 31 34 31 34 33 35 | 2e 32 34 33 31 32 41 2d |04141435|.24312A-|
|000000f0| 31 30 30 30 30 30 40 63 | 6c 61 72 6b 2e 6e 65 74 |100000@c|lark.net|
|00000100| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 33 |>.Refere|nces: <3|
|00000110| 31 33 35 41 37 46 32 2e | 32 31 32 30 40 68 69 77 |135A7F2.|2120@hiw|
|00000120| 61 61 79 2e 6e 65 74 3e | 20 3c 39 36 30 33 30 34 |aay.net>| <960304|
|00000130| 31 33 34 31 2e 41 41 32 | 39 31 39 38 40 62 6d 73 |1341.AA2|9198@bms|
|00000140| 69 2e 63 6f 6d 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |i.com>.N|NTP-Post|
|00000150| 69 6e 67 2d 48 6f 73 74 | 3a 20 65 78 70 6c 6f 72 |ing-Host|: explor|
|00000160| 65 72 2e 63 6c 61 72 6b | 2e 6e 65 74 0a 4d 69 6d |er.clark|.net.Mim|
|00000170| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|00000180| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 54 45 58 |ontent-T|ype: TEX|
|00000190| 54 2f 50 4c 41 49 4e 3b | 20 63 68 61 72 73 65 74 |T/PLAIN;| charset|
|000001a0| 3d 55 53 2d 41 53 43 49 | 49 0a 49 6e 2d 52 65 70 |=US-ASCI|I.In-Rep|
|000001b0| 6c 79 2d 54 6f 3a 20 3c | 39 36 30 33 30 34 31 33 |ly-To: <|96030413|
|000001c0| 34 31 2e 41 41 32 39 31 | 39 38 40 62 6d 73 69 2e |41.AA291|98@bmsi.|
|000001d0| 63 6f 6d 3e 0a 0a 4f 6e | 20 34 20 4d 61 72 20 31 |com>..On| 4 Mar 1|
|000001e0| 39 39 36 2c 20 53 74 75 | 61 72 74 20 44 2e 20 47 |996, Stu|art D. G|
|000001f0| 61 74 68 6d 61 6e 20 77 | 72 6f 74 65 3a 0a 0a 3e |athman w|rote:..>|
|00000200| 20 49 6e 20 61 72 74 69 | 63 6c 65 20 3c 34 68 37 | In arti|cle <4h7|
|00000210| 64 6f 34 24 63 64 34 40 | 63 6c 61 72 6b 6e 65 74 |do4$cd4@|clarknet|
|00000220| 2e 63 6c 61 72 6b 2e 6e | 65 74 3e 20 79 6f 75 20 |.clark.n|et> you |
|00000230| 77 72 69 74 65 3a 0a 3e | 20 3e 4c 61 6e 63 65 20 |write:.>| >Lance |
|00000240| 50 65 72 72 79 20 28 6c | 70 65 72 72 79 40 68 69 |Perry (l|perry@hi|
|00000250| 77 61 61 79 2e 6e 65 74 | 29 20 77 72 6f 74 65 3a |waay.net|) wrote:|
|00000260| 0a 3e 20 3e 3a 20 43 61 | 6e 20 73 6f 6d 65 6f 6e |.> >: Ca|n someon|
|00000270| 65 20 62 65 20 6b 69 6e | 64 20 65 6e 6f 75 67 68 |e be kin|d enough|
|00000280| 20 74 6f 20 70 6f 73 74 | 20 74 68 65 20 66 6f 72 | to post| the for|
|00000290| 6d 75 6c 61 20 66 6f 72 | 20 4c 65 61 70 20 59 65 |mula for| Leap Ye|
|000002a0| 61 72 0a 3e 20 3e 3a 20 | 6f 72 20 70 6f 69 6e 74 |ar.> >: |or point|
|000002b0| 20 6d 65 20 74 6f 20 74 | 68 65 20 70 6c 61 63 65 | me to t|he place|
|000002c0| 20 77 68 65 72 65 20 74 | 68 69 73 20 63 61 6e 20 | where t|his can |
|000002d0| 62 65 20 66 6f 75 6e 64 | 3f 0a 3e 20 3e 3a 20 0a |be found|?.> >: .|
|000002e0| 3e 20 3e 3a 20 6c 70 65 | 72 72 79 40 68 69 77 61 |> >: lpe|rry@hiwa|
|000002f0| 61 79 2e 6e 65 74 0a 3e | 20 3e 0a 3e 20 3e 62 6f |ay.net.>| >.> >bo|
|00000300| 6f 6c 20 49 73 4c 65 61 | 70 59 65 61 72 28 69 6e |ol IsLea|pYear(in|
|00000310| 74 20 79 65 61 72 29 20 | 7b 0a 3e 20 3e 09 72 65 |t year) |{.> >.re|
|00000320| 74 75 72 6e 20 28 79 65 | 61 72 20 25 20 34 20 3d |turn (ye|ar % 4 =|
|00000330| 3d 20 30 29 20 26 26 0a | 3e 20 3e 09 09 28 20 28 |= 0) &&.|> >..( (|
|00000340| 79 65 61 72 20 25 20 31 | 30 30 20 21 3d 20 30 29 |year % 1|00 != 0)|
|00000350| 20 7c 7c 20 28 79 65 61 | 72 20 25 20 34 30 30 20 | || (yea|r % 400 |
|00000360| 3d 3d 20 30 29 20 29 20 | 3b 0a 3e 20 3e 7d 0a 3e |== 0) ) |;.> >}.>|
|00000370| 20 0a 3e 20 54 68 65 20 | 79 65 61 72 20 34 30 30 | .> The |year 400|
|00000380| 30 20 69 73 20 2a 6e 6f | 74 2a 20 61 20 6c 65 61 |0 is *no|t* a lea|
|00000390| 70 20 79 65 61 72 2e 20 | 20 48 75 72 72 79 20 61 |p year. | Hurry a|
|000003a0| 6e 64 20 66 69 78 20 79 | 6f 75 72 20 70 72 6f 67 |nd fix y|our prog|
|000003b0| 72 61 6d 73 20 62 65 66 | 6f 72 65 0a 3e 20 69 74 |rams bef|ore.> it|
|000003c0| 20 69 73 20 74 6f 6f 20 | 6c 61 74 65 21 0a 0a 48 | is too |late!..H|
|000003d0| 75 68 3f 20 54 68 65 20 | 79 65 61 72 20 34 30 30 |uh? The |year 400|
|000003e0| 30 20 57 49 4c 4c 20 62 | 65 20 61 20 6c 65 61 70 |0 WILL b|e a leap|
|000003f0| 20 79 65 61 72 2d 2d 61 | 73 20 77 69 6c 6c 20 74 | year--a|s will t|
|00000400| 68 65 20 79 65 61 72 20 | 32 30 30 30 2e 20 42 75 |he year |2000. Bu|
|00000410| 74 20 31 39 30 30 0a 77 | 61 73 6e 27 74 20 61 6e |t 1900.w|asn't an|
|00000420| 64 20 32 31 30 30 20 77 | 6f 6e 27 74 20 62 65 2e |d 2100 w|on't be.|
|00000430| 20 0a 0a 41 6e 20 65 78 | 74 72 61 20 6f 6e 65 2d | ..An ex|tra one-|
|00000440| 64 61 79 20 61 64 6a 75 | 73 74 6d 65 6e 74 20 69 |day adju|stment i|
|00000450| 73 20 6e 65 65 64 65 64 | 20 65 76 65 72 79 20 33 |s needed| every 3|
|00000460| 2c 32 30 30 20 79 65 61 | 72 73 20 6f 72 20 73 6f |,200 yea|rs or so|
|00000470| 2c 20 62 75 74 20 69 74 | 27 73 20 0a 6f 6e 65 20 |, but it|'s .one |
|00000480| 64 61 79 20 4d 4f 52 45 | 2c 20 49 20 74 68 69 6e |day MORE|, I thin|
|00000490| 6b 2c 20 77 68 69 63 68 | 20 6d 65 61 6e 73 20 61 |k, which| means a|
|000004a0| 6e 20 65 78 74 72 61 20 | 6c 65 61 70 20 79 65 61 |n extra |leap yea|
|000004b0| 72 2c 20 6f 72 20 61 74 | 20 6c 65 61 73 74 20 61 |r, or at| least a|
|000004c0| 6e 20 0a 65 78 74 72 61 | 20 64 61 79 20 69 6e 20 |n .extra| day in |
|000004d0| 61 6e 20 65 78 69 73 74 | 69 6e 67 20 6c 65 61 70 |an exist|ing leap|
|000004e0| 20 79 65 61 72 2e 20 48 | 6f 77 65 76 65 72 2c 20 | year. H|owever, |
|000004f0| 73 69 6e 63 65 20 74 68 | 65 20 47 72 65 67 6f 72 |since th|e Gregor|
|00000500| 69 61 6e 20 0a 63 61 6c | 65 6e 64 61 72 27 73 20 |ian .cal|endar's |
|00000510| 73 79 6e 63 68 72 6f 6e | 69 7a 61 74 69 6f 6e 20 |synchron|ization |
|00000520| 77 61 73 20 65 66 66 65 | 63 74 69 76 65 20 31 35 |was effe|ctive 15|
|00000530| 38 32 2c 20 77 65 20 73 | 68 6f 75 6c 64 6e 27 74 |82, we s|houldn't|
|00000540| 20 68 61 76 65 20 74 6f | 20 77 6f 72 72 79 20 0a | have to| worry .|
|00000550| 61 62 6f 75 74 20 69 74 | 20 75 6e 74 69 6c 20 61 |about it| until a|
|00000560| 72 6f 75 6e 64 20 34 38 | 30 30 20 6f 72 20 35 30 |round 48|00 or 50|
|00000570| 30 30 2e 0a 0a | |00... | |
+--------+-------------------------+-------------------------+--------+--------+